@use "@/assets/scss/head.scss";

.bg {
    height: 100%;
    background-image: url('@/assets/images/locationBg.png');
}

.location {
    width: 100vw;
    height: 100vh;
    position: relative;

    .bg2 {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
        background-image: url('@/assets/images/location.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;

    }
}

.lifeBox {
    width: 100%;
    background-image: url('@/assets/images/space1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0.6rem 10%;
    box-sizing: border-box;

    .title {
        margin-bottom: 0.5rem;
        font-size: 20px;
    }

    .item {
        width: 100%;
        height: 100%;
        overflow: hidden;

        .imgBox {
            width: 100%;
            height: 280px;
            overflow: hidden;

            .img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: fill;
                transition: opacity .4s ease-in, transform .6s linear;
            }
        }



        .bottom {
            padding: 0.2rem 0.4rem 0.3rem;
            line-height: 0.26rem;
            transition: all 0.3s;
            color: #333333;

            .txt1 {
                font-size: 0.2rem;
                margin-bottom: 30px;
            }

            .txt2 {
                font-size: 0.15rem;
            }
        }

    }



}

.bottomBox {
  
    padding: 3.2rem 2.5rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;   
    .txt1{
        font-weight: 500;
        font-size: 20px;
        margin-bottom: 10px;
    } 
    .txt2{
        font-size: 12px;
        line-height: 22px;
    } 
}

@media screen and (max-width: 768px) {
    .headBox {
        height: 5.2rem !important;

        .body {
            display: none;
        }
    }

    .location {
        height: 220px !important
    }

    .lifeBox {
        padding: 0.6rem 3%;

        .item {
            margin-bottom: 15px;
        }
    }

    .bottomBox{
        padding: 2.2rem 0.5rem;
    }

}

@media screen and (min-width: 768px) {
    .item:hover {
        img {
            transform: scale(1.1, 1.1);
        }

        .bottom {
            background-color: #0252A6;
            color: #fff !important;
        }
    }
}